<?php
///defined("STRIP_RUNTIME_SPACE",false);//去空格
//	defined("NO_RUNTIME_CASHE",true);//不生产缓存
//连接数据库
$id=$_GET['uid'];  //一定要用[]括号..
$conn=mysql_connect('localhost:3306','root','root') or die("连接数据库失败");
$db=mysql_select_db("test");
$sql="delete from php_user where id=$id";
$result=mysql_query($sql);
$num=mysql_affected_rows();//受影响的行
if($num>0){
	?>
    <script>
        alert('delete scucess');
        window.location.href="show.php";
    </script>
	<?php
}else {
	?>
<script>
			alert('this is error');
			window.location.href="failure.php";
		</script>
	<?php }
	?>